package com.garden.rocketmq.learn.samples.utils;

import com.garden.rocketmq.learn.samples.message.Order;
import java.util.ArrayList;
import java.util.List;

/**
 * 订单消息工厂
 * Created by Garden on 2021-01-20 14:53
 */
public class OrderFactory {

    /**
     * 生成订单模拟数据【相同订单号有序，不同订单号无序】
     */
    public static List<Order> buildTestOrders(){
        List<Order> orderList = new ArrayList<>();

        Order order = new Order();
        order.setId(15103111039L);
        order.setDesc("创建");
        orderList.add(order);

        order = new Order();
        order.setId(15103111065L);
        order.setDesc("创建");
        orderList.add(order);

        order = new Order();
        order.setId(15103111039L);
        order.setDesc("付款");
        orderList.add(order);

        order = new Order();
        order.setId(15103117235L);
        order.setDesc("创建");
        orderList.add(order);

        order = new Order();
        order.setId(15103111065L);
        order.setDesc("付款");
        orderList.add(order);

        order = new Order();
        order.setId(15103117235L);
        order.setDesc("付款");
        orderList.add(order);

        order = new Order();
        order.setId(15103111065L);
        order.setDesc("完成");
        orderList.add(order);

        order = new Order();
        order.setId(15103111039L);
        order.setDesc("推送");
        orderList.add(order);

        order = new Order();
        order.setId(15103117235L);
        order.setDesc("完成");
        orderList.add(order);

        order = new Order();
        order.setId(15103111039L);
        order.setDesc("完成");
        orderList.add(order);

        return orderList;
    }

}
